﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using Rssc.administrator.compoment;
using Rssc.administrator.app_data;

namespace Rssc.administrator
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string _option = Request.QueryString["option"];
            switch (_option)
            {
                case "com_media":
                    com_media _media = new com_media();
                    ltrContent.Text = _media.Page_Load();
                    break;
                case "com_stats":
                    ltrContent.Text = "";
                    break;
                default:
                    ltrContent.Text = com_index.Page_Load();
                    break;
            }
        }

        #region "com_media"
        [WebMethod]
        public static string File_Load(string parent)
        {
            string _path = parent.Replace("-", "\\");

            string _result = string.Empty;
            _result += CPublic.ContentFolderRight_Load(_path);
            return _result;
        }       
        #endregion
    }
}